<?php
require_once("conn.php");
require_once("functions.php");
//echo "<pre>";
//print_r($config);
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>微有趣</title>
		<meta name="keywords" content=""/>
		<meta name="description" content=""/>
		<meta name="apple-mobile-web-app-capable" content="yes"/>
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
		<link rel="stylesheet" type="text/css" href="./assets/css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="./assets/css/task.css"/>
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script>
			function changeSize() {
				var propo = $(window).width() / 640;
				$('html').css('font-size', 40 * propo + 'px');
			};
			changeSize();
			$(window).resize(function() {
				changeSize();
			});
		</script>
	</head>
	<body>
		<div class="wrap">
			<div class="new">
				<div class="new_tit clearfix">
					<span class="new_icon"></span>新手任务<span style="text-align: right;display: inline-block;float: right;">点击任务查看详情</span>
				</div>
				<ul class="new_list">
					<li class="new_task">
						<div class="new_nav clearfix">
							<span class="new_icon2"></span><div class="new_con">注册成功<span class="new_score" style="color: red;">+3金币</span></div><span class="chart"></span>
						</div>
						<div class="new_down border1 clearfix">
							<div class="ms">用户注册成功并登录微有趣App,可以获得3金币</div>
						</div>
					</li>
					<li class="new_task">
						<div class="new_nav clearfix">
							<span class="new_icon2"></span><div class="new_con">绑定微信号<span class="new_score">+300积分</span></div><span class="chart"></span>
						</div>
						<div class="new_down border1 clearfix">
							<div class="ms">绑定微信号，可以获得300积分，提现也需要绑定微信哦</div>
							<div class="btn"><a onclick="jumpUser();">绑定微信</a></div>
						</div>
					</li>
					<li class="new_task">
						<div class="new_nav">
							<span class="new_icon2"></span><div class="new_con">邀请好友<span class="new_score" style="color: red;">+1金币</span></div><span class="chart"></span>
						</div>
						<div class="new_down border1  clearfix">
							<div class="ms">每成功邀请一位好友，好友微信登录师傅可获得200积分，好友完成有效阅读文章师傅还能获得1金币。快速赚金币，邀请好友才是王道</div>
							<div class="btn"><a href="http://app.weiyouqu.net/weiApp/invite.php?id=<?php $uid = $_GET['id'];echo $uid?>">邀请好友</a></div>
						</div>
					</li>
					<li class="new_task">
						<div class="new_nav clearfix">
							<span class="new_icon2"></span><div class="new_con">好友贡献途径<span class="new_score"></span></div><span class="chart"></span>
						</div>
						<div class="new_down border1 clearfix">
							<div class="ms">好友分享文章到微信，每次有效阅读，师傅都可获得2积分。好友有效阅读app中的动态,师傅可获得20积分</div>
							<!--<div class="btn"><a onclick="jumpUser();">绑定微信</a></div>-->
						</div>
					</li>
				</ul>
			</div>
			<div class="new">
				<div class="new_tit clearfix">
					<span class="day_icon"></span>日常任务
				</div>
				<ul class="new_list">
					<li class="new_task">
						<div class="new_nav">
							<span class="day_icon2"></span><div class="new_con">转发动态到微信朋友圈<span class="new_score">+20积分</span></div><span class="chart"></span>
						</div>
						<div class="new_down  clearfix border2">
							<div class="ms">文章在微信中，每被一位好友有效阅读，都可获得20积分</div>
							<div class="btn"><a onclick="jumpArticles();">转发动态</a></div>
						</div>
					</li>
					<li class="new_task">
						<div class="new_nav  clearfix">
							<span class="day_icon2"></span><div class="new_con">转发动态到QQ空间<span class="new_score">+30积分</span></div><span class="chart"></span>
						</div>
						<div class="new_down  clearfix border2">
							<div class="ms">转发动态到空间，每次转发都能获得30积分，最多可获得150积分</div>
							<div class="btn"><a onclick="jumpArticles();">转发空间</a></div>
						</div>
					</li>
					<li class="new_task">
						<div class="new_nav">
							<span class="day_icon2"></span><div class="new_con">发布合格文章<span class="new_score">+30积分</span></div><span class="chart"></span>
						</div>
						<div class="new_down  clearfix border2">
							<div class="ms">每天发布有趣的文章，每发布一篇合格的文章就能获得30积分，最多可获得90积分，发表的文章越有趣，获得的打赏就越多哦。每天限发五篇</div>
							<div class="btn"><a onclick="jumpPublish();">发布文章</a></div>
						</div>
					</li>
					<li class="new_task">
						<div class="new_nav">
							<span class="day_icon2"></span><div class="new_con">阅读视频<span class="new_score">+20积分</span></div><span class="chart"></span>
						</div>
						<div class="new_down  clearfix border2">
							<div class="ms">每天认真阅读文章，每次阅读系统会给予20积分奖励，最多可获得100积分</div>
							<div class="btn"><a onclick="jumpArticles();">阅读文章</a></div>
						</div>
					</li>
					<li class="new_task">
						<div class="new_nav clearfix">
							<span class="day_icon2"></span><div class="new_con">点赞<span class="new_score">+2积分</span></div><span class="chart"></span>
						</div>
						<div class="new_down  clearfix border2">
							<div class="ms">每天阅读文章，为优秀文章点赞，每次点赞都可获得2积分，最多可获得40积分</div>
							<div class="btn"><a onclick="jumpNews();">前去点赞</a></div>
						</div>
					</li>
					<li class="new_task">
						<div class="new_nav">
							<span class="day_icon2"></span><div class="new_con">优质评论<span class="new_score">+50积分</span></div><span class="chart"></span>
						</div>
						<div class="new_down  clearfix border2">
							<div class="ms">当你针对文章做出评论，并且你的评论被多人点赞超过一定数量，就有机会成为优质评论。每条优质评论可获得50积分，还能被打赏</div>
							<div class="btn"><a onclick="jumpNews();">优质评论</a></div>
						</div>
					</li>
					<li class="new_task">
						<div class="new_nav">
							<span class="day_icon2"></span><div class="new_con">评论<span class="new_score">+20积分</span></div><span class="chart"></span>
						</div>
						<div class="new_down  clearfix border2">
							<div class="ms">为文章添加优质评论，每次优质评论可获取20积分，最多可获得200积分</div>
							<div class="btn"><a onclick="jumpNews();">文章评论</a></div>
						</div>
					</li>
					<!--<li class="new_task">
						<div class="new_nav">
							<span class="day_icon2"></span><div class="new_con">每日签到<span class="new_score">+20积分</span></div><span class="chart"></span>
						</div>
						<div class="new_down  clearfix border2">
							<div class="ms">每天登陆微有趣App进行签到，就可获得20积分</div>
							<div class="btn"><a onclick="jumpUser();">签到</a></div>
						</div>
					</li>-->
				</ul>
			</div>
		</div>
		
		<script type="text/javascript">
			$(function(){
					var num = true;
					$(".new_nav").click(function(){
						if($(this).siblings(".new_down").css("display") == "block"){
							num= false;
						}else{
							num = true;
						}
						if(num){
							num = false;
							$(this).siblings(".new_down").show();
							$(this).find(".chart").css("background-image","url(../weiApp/assets/images/task/top.png)");
						}else{
							num = true;
							$(this).siblings(".new_down").hide();
							$(this).find(".chart").css("background-image","url(../weiApp/assets/images/task/down.png)");
						}
						
					});	
			});
			function jumpNews(){
				window.jsObj.readyGoNews();//首页
			}
			function jumpUser(){
				window.jsObj.readyGoUser();//微信绑定
			}
			function jumpPublish(){
				window.jsObj.readyGoPublish();//发表
			}
			function jumpArticles(){
				window.jsObj.readyGoArticles();//文章
			}
			
		</script>
	</body>
</html>
